package com.javabasic.oop;

public class Unit25AccessModifiers {
	// Every where
	public int age;
	// Same package 
	protected String name;
	// Same package
	String address;
	// Only for its
	private int numberOfWives;

	public static void main(String[] args) {
		Boss b1 = new Boss();
		b1.showWives();
	}
}

class Boss {
	// Every where
	public int age;
	// Same package, and subclasses
	protected String name;
	// Same package
	String address;
	// Only for its
	private int numberOfWives;

	private void showAge() {
		System.out.println(age);
	}

	void showName() {
		System.out.println(name);
	}

	protected void showAddress() {
		System.out.println(address);
	}

	public void showWives() {
		System.out.println(numberOfWives);
	}
}